const path = require('path');
const Koa = require('koa');
const mount = require('koa-mount');
const static = require('koa-static');

const app = new Koa()
app.use(mount('/', static(path.join(process.cwd(), 'dist'), {
    maxAge: 30 * 24 * 60 * 60 * 1000,
    gzip: true,
})))
app.listen(6777, () => {
    console.log('服务启动成功，端口：6777')
})